<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    for (let i = 1; i <= 9; i++) {
      for (let j = 1; j <= i; j++) {
        document.write(j + '*' + i + '=' + i * j + '')

      }
      document.write('<br/>')
    }
    let array = [5, 9, 3, 7, 1, 6, 8, 4, 2]
    for (let i = 0; i < array.length; i++) {
      for (let j = 0; j < array.length - i; j++) {
        if (array[j] > array[j + 1]) {
          let t = array[j]
          array[j] = array[j + 1]
          array[j + 1] = t
        }

      }

    }
    console.log(array);
    let a = [5, 6, 7, 5, 9, 6, 2, 7]
    console.log(new Set(a));
  </script>
</body>

</html>